//
//  NSObject+SafeObject.m
//  Customer
//
//  Created by libin04 on 16/3/18.
//  Copyright © 2016年 libin-1. All rights reserved.
//

#import "NSObject+SafeObject.h"

@implementation NSObject (SafeObject)

- (id _Nullable)safeObject{
    if ([self isEqual:[NSNull null]]) {
        return nil;
    }else if([self isEqual:@"(null)"]){
        return nil;
    }
    else {
        return self;
    }
}

@end
